package com.ruoyi.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 《智慧停车系统》--订单表
 * </p>
 *
 * @author 贾玉亮
 * @since 2022-11-14
 */
@Getter
@Setter
@TableName("p_order")
@ApiModel(value = "Order对象", description = "《智慧停车系统》--订单表")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单id")
      private Long id;

    @ApiModelProperty("订单编号")
      private Long num;

    @ApiModelProperty("订单金额")
    private BigDecimal price;

    @ApiModelProperty("订单状态 0-未录入 1-进行中 2-未支付 3已支付 4-订单异常")
    private String status;

    @ApiModelProperty("订单支付类型 0-微信 1-支付宝 2-现金")
    private String payType;

    @ApiModelProperty("订单表 车辆外键")
    private Long fkCarId;

    @ApiModelProperty("订单表 车位外键")
    private Long fkParkingId;

    @ApiModelProperty("订单表 用户外键")
    private Long fkUserId;

    @ApiModelProperty("车辆驶入时间")
    private Date intoTime;

    @ApiModelProperty("车辆驶出时间")
    private Date leaveTime;

    @ApiModelProperty("订单创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("订单修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("订单提交时间")
    private Date submitTime;

    @ApiModelProperty("逻辑删除  0-未删除 1-已删除")
    @TableLogic
    private Integer isDeleted;


}
